var ThanksMenuLayer = cc.Layer.extend({
	_backgroundLayer:null,
	_touchLayer:null,
	ctor:function(number){
		this._super();
		this.addBackgroundLayer(number);
		this.addTouchLayer(number);
	},
	addBackgroundLayer : function(number){
		this._backgroundLayer = new TBackgroundLayer(number);
		this.addChild(this._backgroundLayer);
	},
	addTouchLayer : function(number) {
		this._touchLayer = new TTouchLayer(number);
		this.addChild(this._touchLayer);
	}
});

var ThanksMenuScene = cc.Scene.extend({
	ctor:function(number){
		this._super();
		this.number = number;
	},
	onEnter:function(){
		this._super();
		var layer = new ThanksMenuLayer(this.number);
		this.addChild(layer);
	}
});